#outerContainer{
    width: 500px;
    height: 500px;
    background-color: #ccc;
    position: relative;
}

.innerBox{
    width: 100px;
    height: 100px;
    background-color: #3cf;
    border-radius: 50%;
}

#outerContainer :nth-child(2){
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%);
}

#outerContainer :nth-child(3){
    position: absolute;
    right: 0;
    top: 0;
}

#outerContainer :nth-child(4){
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(0,-50%);
}

#outerContainer :nth-child(5){
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}

#outerContainer :nth-child(6){
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(0,-50%);
}

#outerContainer :nth-child(7){
    position: absolute;
    left: 0;
    bottom: 0;
}

#outerContainer :nth-child(8){
    position: absolute;
    left: 50%;
    bottom: 0;
    translate: -50%;
}

#outerContainer :nth-child(9){
    position: absolute;
    right: 0;
    bottom: 0;
}